/**
 * 文件服务接口
 */
import axios from '@/libs/http'
import qs from 'qs'

/**
 * 获取文件列表
 */
export const getFiles = ()=>{
  return axios({
    method: 'get',
    url: '/oss/files'
  })
}

/**
 * 删除文件
 */
export const deleteFile = objectName => {
  return axios({
    method: 'delete',
    url: '/oss/delete/'+objectName
  })
}

/**
 * 搜索文件
 */
export const searchFile = objectName => {
  return axios({
    method: 'get',
    url: '/oss/file?fileName='+objectName
  })
}
